Optimal. Leaf size=26 \[ -\frac {\text {Li}_2\left (1-a x^{1-n}\right )}{a (1-n)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {1593, 2336, 2315} \[ -\frac {\text {PolyLog}\left (2,1-a x^{1-n}\right )}{a (1-n)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 2315
Rule 2336
Rubi steps
\begin {align*} \int \frac {\log \left (a x^{1-n}\right )}{a x-x^n} \, dx &=\int \frac {x^{-n} \log \left (a x^{1-n}\right )}{-1+a x^{1-n}} \, dx\\ &=\frac {\operatorname {Subst}\left (\int \frac {\log (a x)}{-1+a x} \, dx,x,x^{1-n}\right )}{1-n}\\ &=-\frac {\text {Li}_2\left (1-a x^{1-n}\right )}{a (1-n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 23, normalized size = 0.88 \[ \frac {\text {Li}_2\left (1-a x^{1-n}\right )}{a (n-1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.42, size = 89, normalized size = 3.42 \[ \frac {2 \, {\left (n - 1\right )} \log \relax (a) \log \relax (x) - {\left (n^{2} - 2 \, n + 1\right )} \log \relax (x)^{2} + 2 \, {\left (n - 1\right )} \log \relax (x) \log \left (\frac {a - x^{n - 1}}{a}\right ) - 2 \, \log \relax (a) \log \left (-a + x^{n - 1}\right ) + 2 \, {\rm Li}_2\left (-\frac {a - x^{n - 1}}{a} + 1\right )}{2 \, {\left (a n - a\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\log \left (a x^{-n + 1}\right )}{a x - x^{n}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.93, size = 0, normalized size = 0.00 \[ \int \frac {\ln \left (a \,x^{-n +1}\right )}{a x -x^{n}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\log \left (a x^{-n + 1}\right )}{a x - x^{n}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.04 \[ \int \frac {\ln \left (a\,x^{1-n}\right )}{a\,x-x^n} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\log {\left (a x x^{- n} \right )}}{a x - x^{n}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________